#!/bin/bash
cat $1 | sed 's/|\([0-9]\+\/[0-9]\+\/[0-9]\+\)/<\/day><day date="\1">/g' | sed 's/|\(in\|out\)|\([0-9]\+:[0-9]\+\)|\([0-9]\+.[0-9]\+.[0-9]\+.[0-9]\+\)/<hour in_or_out="\1" time="\2" ip="\3">/g'
